package com.example.zhinengjiaotong;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ShowdataActivity extends AppCompatActivity {
    private TextView tvShowDataTitle;
    private TextView tvShowDataUserName;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        Intent intent = getIntent();
        tvShowDataUserName.setText(intent.getStringExtra("userName"));
        Bundle bundle = intent.getExtras();
        tvShowDataUserName.setText(bundle.getString("passWord"));

    }

    private void initView() {
        tvShowDataTitle = (TextView) findViewById(R.id.tvShowDataTitle);
        tvShowDataUserName = (TextView) findViewById(R.id.tvShowDataUserName);
    }
}